#!/bin/bash

version=$1

npm unpublish -f "@zto/zmi@$version"
npm unpublish -f "@zto/zmi-core@$version"
npm unpublish -f "@zto/zmi-plugins@$version"
npm unpublish -f "@zto/zmi-presets-pc@$version"
npm unpublish -f "@zto/zmi-presets-micro@$version"
npm unpublish -f "@zto/zmi-presets-h5@$version"
npm unpublish -f "@zto/zmi-presets-docs@$version"

git tag -d "v$version"
git push origin --delete -d "v$version"
